#!/bin/bash

# Generate full LaTex file from all ChessLike perl modules
pod2latex -out API.tex -full -modify ../lib/ChessLike/Game.pm ../lib/ChessLike/GamePiece.pm ../lib/ChessLike/Board.pm ../lib/ChessLike/BoardUtils.pm ../lib/ChessLike/Action.pm

# Build latex file twice for table of contents
pdflatex API.tex
pdflatex API.tex

# Clean up
mv API.pdf ChessLike_API.pdf
rm API.*

# Check it out!
#acroread ChessLike_API.pdf
